package com.wx.mall.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author j
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pro_stock")
@ApiModel(value="Stock对象", description="")
public class Stock implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "SKU_ID")
    private Long skuId;

    @ApiModelProperty(value = "编码")
    private String encode;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "属性")
    private String spec;

    @ApiModelProperty(value = "SPU_ID")
    private Long spuId;

    @ApiModelProperty(value = "货号")
    private String spuNum;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "库存数量")
    private Long stockNum;

    @ApiModelProperty(value = "剩余库存")
    private Long residueStock;

    @ApiModelProperty(value = "出入库分类")
    private Integer discrepancy;

    @ApiModelProperty(value = "库存类型")
    private Integer stockType;

    @ApiModelProperty(value = "操作类型")
    private Integer operationType;

    @ApiModelProperty(value = "管理人员")
    private Integer adminId;

    @DateTimeFormat(pattern = "yy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private Date creationTime;

    @ApiModelProperty(value = "库存软删除")
    private Integer stockDelete;


}
